package com.itheima.oop.d6_homework.practise02;

/**
 * 测试类
 */
public class Test {
    public static void main(String[] args) {
        Student s1 = new Student();
        //空参构造方法
        s1.setName("张三");
        s1.setAge(23);
        //有参构造方法
        Student s2 = new Student("李四",24);
        s1.show();
        s2.show();
    }
}
